package com.quick.develop.flowable.service.task.impl;

import com.quick.develop.flowable.mapper.BpmHistoricTaskMapper;
import com.quick.develop.flowable.service.task.IBpmHistoricTaskService;
import lombok.extern.slf4j.Slf4j;
import org.flowable.task.api.history.HistoricTaskInstance;
import org.flowable.task.service.impl.HistoricTaskInstanceQueryImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * desc:
 *
 * @author junyuan.liu
 * @date 2023/8/15 9:52
 */
@Service
@Slf4j
public class BpmHistoricTaskServiceImpl implements IBpmHistoricTaskService {
    @Resource
    private BpmHistoricTaskMapper bpmHistoricTaskMapper;

    @Override
    public List<HistoricTaskInstance> getHistoricTaskByBusinessKey(HistoricTaskInstanceQueryImpl query) {
        return bpmHistoricTaskMapper.selectHistoricTaskByBusinessKey(query);
    }
}
